import unittest

import tools


class Test_add_func(unittest.TestCase):
    def test_method1(self):
        if tools.add(-9, 9) == 0:
            print('测试通过')
        else:
            print('测试不通过')

    def test_method2(self):
        if tools.add(-1, -20) == -21:
            print('测试通过')
        else:
            print('测试不通过')

    def test_method3(self):
        if tools.add(2, 7) == 9:
            print('测试通过')
        else:
            print('测试不通过')



